package com.obas.component.tree.treeclass {

	import com.obas.constants.StringConstants;
	import com.obas.flex.common.util.ResourceUtil;
	import com.ease.component.constant.IconConstant;

   /**
    * The node with loading stat.
    */
	public class LoadingNode {
		private var _parentId:String;

      public var selectable:Boolean = false;

		/**
		 * Will always return the 'loading' display string
		 */
		public function get label():String {
			return "加载中...";//ResourceUtil.getString(StringConstants.GENERAL_LOADING);
		}

		public function set label(value:String):void {
		}

		public function get id():String {
			return null;
		}
		public function set id(value:String):void {
		}

		/**
		 * Node consumer should set the parent node as it cannot be
		 * automatically inferred
		 */
		public function get parentId():String {
			return _parentId;
		}
		public function set parentId(value:String):void {
			_parentId = value;
		}

		public function get icon():Class {
			return IconConstant.SPINNER_FORWARD_BLACK;
		}

	}
}
